//
//  CityInfo.m
//  MovingLoaniOS
//
//  Created by Rain on 2018/8/23.
//  Copyright © 2018 - 2019 GWMFC. All rights reserved.
//

#import "CityInfo.h"

@implementation CityInfo

+ (NSMutableArray *)getFormattedCityInfos {
    return [[self class] getFormattedEntitiesFor:[[self class] getFirstClassCityInfos]
                                    fromEntities:[[self class] getAllCityInfos]];
}

+ (NSMutableArray *)getFirstClassCityInfos {
    return [[self class] getCityInfosByPcode:@"0"];
}

+ (NSMutableArray *)getCityInfosByCode:(NSString *)code {
    return [[self class] getEntitiesByCode:code inEntities:[[self class] getAllCityInfos]];
}

+ (NSMutableArray *)getCityInfosByPcode:(NSString *)pcode {
    return [[self class] getEntitiesByPcode:pcode inEntities:[[self class] getAllCityInfos]];
}

+ (NSMutableArray *)getAllCityInfos {
    return [[self class] getAllEntitiesByTypeID:@"00001HLABTHDE0000A1H"];
}

@end
